<!doctype html>
<html lang="en">
  <head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0,viewport-fit=cover">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>测试</title>
    <script type="module" src="src/index.ts"></script>
  </head>
  <body>
    测试
    <div id="main">
      <button id="btn">点击</button>
      <a>这里是A标签</a>
      <div style="color: yellowgreen">这里是带颜,色的.内容</div>
      <div style="color: yellowgreen"></div>
    </div>
    <script type="module">
      const main = document.getElementById('main')
      const btn = document.getElementById('btn')
      import {fileSelector,imageSelector,imageCompress} from './src/index.ts'

      btn.addEventListener('click', function () {
        fileSelector({}).then((res) => {
          console.log("res2222222222222222",res)
        })
      })
    </script>
  </body>
</html>
